package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.AddressBook;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpSession;
import java.util.List;

@Transactional
public interface AddressBookService extends IService<AddressBook> {
    R saveAddressBook(AddressBook addressBook);

    R setDefaultAddressBook(AddressBook addressBook);

    R getAddressBookBYiId(Long id);

    R getDefaultAddressBook(HttpSession session);

    R getAllAddressBook(HttpSession session);

    R deleteAddressBook(List<Long> ids);

    R updateAddressBook(AddressBook addressBook);
}
